function WebAppController(){
	
	this.view = {extend: "base" };
	
	this.handler = function(){
		var user = request.getAttr("user");
		
		this.get = function(){
			if(user){
				alert("test");
				user.cookie = "x";
				db.users.update(user, {username: user.username});
				request.setAttr("user", null);
				response.deleteCookie("user");
			}
			response.redirect("/ashafa");
		}
		
		this.post = function(){
			this.get();
		}
	}

}